<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>更新目的地活动信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">
		<table>
			<tr>
				<td><label>活动标题:</label>
				</td>
				<td><input name="activityTitle" size="23"
					data-options="required:true,validType:'length[0,64]'"
					class="easyui-validatebox" value="${destActivity.activityTitle }">
				</td>
				<td><label>活动地址:</label>
				</td>
				<td><input name="activityAddress"
					data-options="required:true,validType:'length[0,64]'"
					class="easyui-validatebox" size="23"
					value="${destActivity.activityAddress }">
				</td>
			</tr>
			<tr>
				<td><label>开始时间:</label>
				</td>
				<td><input name="activityStart" data-options="required:true"
					class="easyui-datebox" style="width: 150px"
					value="<fmt:formatDate value='${destActivity.activityStart }' pattern='yyyy-MM-dd'/>" />
				</td>
				<td><label>结束时间:</label>
				</td>
				<td><input name="activityEnd" data-options="required:true"
					class="easyui-datebox" style="width: 150px"
					value="<fmt:formatDate value='${destActivity.activityEnd }' pattern='yyyy-MM-dd'/>" />
				</td>
			</tr>
			<tr>
				<td><label>新图片地址:</label>
				</td>
				<td colspan="3"><input name="mfile" type="file" size="55"
					class="easyui-validatebox">
				</td>
			</tr>
			<tr>
				<td><label>活动描述:</label>
				</td>
				<td colspan="3"><textarea name="activityDesc"  id="activityDesc" 
						data-options="validType:'length[0,500]'"
						class="easyui-validatebox" style="width: 403px; height: 80px">${destActivity.activityDesc }</textarea>
				</td>
			</tr>
			<tr>
				<td><label>旧图片：</label>
				</td>
				<td><img alt="" src="${cpath }${img_preffix}${destActivity.activityImg }"
					width=200px height=100px></td>
			</tr>
			<input type="hidden" value="${destActivity.activityImg }"
				name="activityImg">
			<input type="hidden" value="${destActivity.destId}" name="destId">
			<input type="hidden" value="${destActivity.activityId}" name="activityId">
		</table>

	</form>
	<script type="text/javascript">
		$('#activityDesc').ceditor();
	</script>
	<style type="text/css">
#fm {
	margin: 0;
	padding: 40px 40px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
</style>
</body>
</html>